package cn.shopping.service.impl.ordermanage;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.shopping.dao.ordermanage.OrderManageMapper;
import cn.shopping.pojo.Ch_delivery;
import cn.shopping.service.ordermanage.OrderManageService;

@Service
public class OrderManageServiceImpl implements OrderManageService {

	@Autowired
	private OrderManageMapper orderManagement;
	
	@Override
	public List<Ch_delivery> findshippinglist() {
		// TODO Auto-generated method stub
		return orderManagement.findshippinglist();
	}

	@Override
	public List<Ch_delivery> AllCompletedList() {
		// TODO Auto-generated method stub
		return orderManagement.AllCompletedList();
	}

	@Override
	public List<Ch_delivery> getshippinglist(String order_no,String product_name,String statusName,String order_time,String end_time) {
		// TODO Auto-generated method stub
		return orderManagement.findorderAlllist(order_no, product_name, statusName, order_time, end_time);
	}

	@Override
	public boolean delshipping(int id) {
		boolean ison = false;
		if(orderManagement.delshipping(id)>0){
			ison=true;
		}
		return ison;
	}

	@Override
	public boolean delCompletedList(int id) {
		// TODO Auto-generated method stub
		boolean icon = false;
		if(orderManagement.delCompletedList(id)>0){
			icon=true;
		}
		return icon;
	}

	@Override
	public boolean delorderlist(int id) {
		// TODO Auto-generated method stub
		boolean ioon=false;
		if(orderManagement.delorderlist(id)>0){
			ioon=true;
		}
		return ioon;
	}

	@Override
	public List<Ch_delivery> findorderdetails(int id) {
		// TODO Auto-generated method stub
		return orderManagement.findorderdetails(id);
	}

}
